package com.haixee.parkdemo.auth.dao;

import com.haixee.parkdemo.auth.entity.dto.RoleDTO;
import com.haixee.parkdemo.auth.model.Role;
import com.haixee.parkdemo.auth.model.RoleAclKey;

import java.util.Collection;
import java.util.List;

public interface RoleCustomMapper {

    void insertRoleAclList(Integer roleId, Collection<Integer> acls);

    List<RoleDTO> selectAll(Integer tenantId);

    List<Integer> selectAclIdByRoleId(Integer roleId);

    void deleteByRoleId(Integer roleId);

    Integer selectIdByTenantId(Integer tenantId);

    boolean existByRoleIdAndAclId(Integer roleId, Integer aclId);

}